package com.liangdemo.web.test.demo;

/**
 * String 的用法
 *
 * @author: LiangErLe
 * @date: 2022/8/17
 **/
public class StringDemo {
    public void test() {
        String str = "HelloWorld";
        //获取置顶位置字符
        System.out.println(str.charAt(5));

    }

    public static void main(String[] args) {
        StringDemo demo = new StringDemo();
        demo.test();
    }
}
